package com.king.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author king
 * @date 2020/10/6 22:23
 */
@RestController
public class NacosPaymentController {

    @Value("${server.port}")
    private String port;

    /**
     * 查询
     * @param id 流水号
     * @return 结果
     */
    @GetMapping("/payment/nacos/{id}")
    public String getPaymentById(@PathVariable("id") Long id){
        return "port: " + port + " id: " + id;
    }
}
